import {fetch} from '@/utils/fetch'
import {user} from '../fragment'

export const getSubmitedsByTaskId = async (taskId) => {
  let res = await fetch({
    query: `{
      getMemberSubmitedsByTaskId (taskId: ${taskId}) {
        ${user}
      }
    }`,
    cache: false
  })
  return res.data.getMemberSubmitedsByTaskId
}
